home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / quad / RCS / Quad_Misc.man,v < prev    next >
Encoding:
Text File  |  1991-03-18  |  1.5 KB  |  72 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.1
  10. date     91.03.18.12.20.38;  author kupfer;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @Man page for miscellaneous routines for quad integers.
  17. @
  18.  
  19.  
  20.  
  21. 1.1
  22. log
  23. @Initial revision
  24. @
  25. text
  26. @'\" Copyright 1991 Regents of the University of California
  27. '\" Permission to use, copy, modify, and distribute this
  28. '\" documentation for any purpose and without fee is hereby
  29. '\" granted, provided that this notice appears in all copies.
  30. '\" The University of California makes no representations about
  31. '\" the suitability of this material for any purpose.  It is
  32. '\" provided "as is" without express or implied warranty.
  33. '\" 
  34. '\" $Header: /sprite/lib/forms/RCS/lib.man,v 1.3 91/01/07 17:55:52 mottsmth Exp $ SPRITE (Berkeley)
  35. '/" 
  36. .so \*(]ltmac.sprite
  37. .HS Quad lib
  38. .BS
  39. '\" Note:  do not modify the .SH NAME line immediately below!
  40. .SH NAME
  41. Quad_PutUns, Quad_UnsToDouble \- Formatting and conversion for 64-bit integers
  42. .SH SYNOPSIS
  43. .nf
  44. \fB#include <quad.h>\fR
  45. .sp
  46. void
  47. \fBQuad_PutUns\fR(\fIstream\fR, \fIuQuad\fP)
  48. .sp
  49. double
  50. \fBQuad_UnsToDouble\fR(\fIuQuad\fR)
  51. .SH ARGUMENTS
  52. .AS u_quad uQuad
  53. .AP FILE *stream in
  54. I/O stream to write to.
  55. .AP u_quad uQuad in
  56. Unsigned 64-bit integer to operate on.
  57. .BE
  58.  
  59. .SH DESCRIPTION
  60. .PP
  61. .B Quad_PutUns
  62. formats an unsigned quad value and writes it to the given
  63. .IR stream .
  64. If the value is larger than a single integer, it is written as a
  65. floating point number.
  66. .B Quad_UnsToDouble
  67. converts an unsigned quad to a C double.
  68.  
  69. .SH KEYWORDS
  70. quad, I/O, conversion
  71. @
  72.